using System;
using System.Resources;
using System.Reflection;

namespace FridayShopping.UI
{
	/// <summary>
	/// Singleton. Manages the string resources
	/// </summary>
	public class LangResources
	{
		private static LangResources instance;

		private ResourceManager resources;

		private LangResources()
		{
			resources = new ResourceManager("FridayShopping.UI.Resources",
							System.Reflection.Assembly.GetExecutingAssembly());
		}

		public static LangResources Instance 
		{
			get
			{
				if (instance == null)
				{
					instance = new LangResources();
				}
				return instance;
			}
		}

		public ResourceManager Resources
		{
			get 
			{
				return resources;
			}
		}
	}
}
